﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class cn_common_menu_news : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetCategory();
        }
    }


    private void GetCategory()
    {
        //下级栏目
        string sqlStr = "select * from Whir_Column where parentID = 4  order by sort asc";
        DataTable dt = Whir.SQLServerDAL.DbHelperSQL.Query(sqlStr).Tables[0];
        if (dt != null && dt.Rows.Count > 0)
        {
            rptNewsCategory.DataSource = dt;
            rptNewsCategory.DataBind();
        }

    }
}
